package com.springdemo.spring5.Userservice;

import com.springdemo.spring5.Userdao.UserDao;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/23 14:57
 * Description:
 * Version: V1.0
 */
public class UserService {
        //创建UserDao类型属性，生产set方法
    private UserDao userDao;
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    public void add(){
        System.out.println("Userservice add...");
        userDao.update();
    }
}
